package SC12Project.Milestone1.Payment;

public interface PaymentWS
{

    /**
     * Query the balance of an account
     * 
     * @param accountID
     * @return balance of the account
     */
    public int queryAccount( String accountID );

    /**
     * Transfer money from account1 to account2
     * 
     * @param accountID1 payee
     * @param accountID2 benefiter
     * @param amount the amount of money transfered from account1 to account2
     * @return true if the transaction is successful; otherwise false;
     */
    public boolean transfer( String accountID1, String accountID2, int amount )
        throws TransactionException;

}
